package cn.itcast.service;

import cn.itcast.domain.User;

import java.util.List;

public interface UserService {
    //查询所有
    List<User> findAll();
    //添加用户
    Integer add(String username, String email);
    //根据id删除用户
    Integer delete(String uid);
    //根据id查询用户
    User findById(String uid);
    //修改用户
    Integer update(int id, String username, String email);
    //批量删除
    Integer deleteByIds(String ids);
}
